Ext.define('TS.model.inv.ProductContactModel', {
    extend: 'Ext.data.Model', 
    fields: ['id','invAddId','productId','batchNoId',
    'fyear', 'period','inQty','inAmt','outQty','outAmt','remQty',
    'remAmt','billId','billDetailId','billDate','customerId',
    'direct','summary','customerCode','customerName'
    ],
    associations: [{
		 type:'hasOne',
		 model: 'TS.model.base.ProductModel', 
		 associatedName : 'product', 	     
		 associationKey:'product'  
       },
       {
		 type:'hasOne',
		 model: 'TS.model.base.InvAddModel', 
		 associatedName : 'invAdd', 	     
		 associationKey:'invAdd'  
       },
       {
		 type:'hasOne',
		 model: 'TS.model.inv.ProductBatchNoModel', 
		 associatedName : 'batchNo', 	     
		 associationKey:'batchNo'  
       }
	]
 });   


/*	private Long id;
	private Integer invAddId;
	private Integer productId;
	private Long batchNoId;
	private Integer fyear;
	private Integer period;
	private BigDecimal inQty;
	private BigDecimal inAmt;
	private BigDecimal outQty;
	private BigDecimal outAmt;
	private BigDecimal remQty;
	private BigDecimal remAmt;
	private Long billId;
	private Long billDetailId;
	private Date billDate;
	private Integer customerId;
	private Integer direct;
	private String summary;
	
	private String customerCode;
	private String customerName;
	
	private InventoryAdd invAdd;
	private Product product;
	private ProductBatchNo batchNo;*/